﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="UpgradeNeedApprove.aspx.cs" Inherits="WXYW.UpgradeNeedApprove" %>

<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    RMA升级服务--申请-->待申请审批
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <WXYWControl:CustomGridView ID="upgradeFormsGridView" runat="server" AutoGenerateColumns="false"
        OnPageIndexChanging="upgradeFormsGridView_PageIndexChanging" OnRowDataBound="upgradeFormsGridView_RowDataBound"
        Width="100%" CssClass="tableList" BorderWidth="1" BorderColor="#888888" OnMustAddARow="GridView_MustAddARow"
        AllowPaging="true" OnDataBound="upgradeFormsGridView_DataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="平台">
                <ItemTemplate>
                    <%#Eval("ServiceStation.Name") %>
                </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="RMA #">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ApplicationForm.ApplicationCode")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="型号">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProductType.ProductTypeName") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="收货日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ApplicationProduct.ApplicationForm.ReceiveDateTime")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="申请日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ApplyTime")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="状态" DataField="Status" />
            <asp:TemplateField>
                <ItemTemplate>
                    <img src="image/operateicon/docedit.gif" />
                    <asp:LinkButton ID="updateLinkButton" runat="server" OnClick="updateLinkButton_Click"
                        CommandArgument='<%#Eval("ID") %>'>修改</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= RecordsNumber%></span>条, <span style="color: Red">20</span>条/页
            当前 <span style="color: Red">
                <%= upgradeFormsGridView.PageIndex + 1%>/<%= upgradeFormsGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
    </WXYWControl:CustomGridView>
</asp:Content>
